package com.demo.enums;

/**
 *
 */
public enum PatientPrecautionEnum {
    WU_LI_PRECAUTION(1, "物理预防"),
    FANG_GUI_CHANG_ZHI(2, "防治常规"),
    WU_LI_AND_YAO_WU(3, "物理＋药物预防");

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    PatientPrecautionEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static PatientPrecautionEnum getByValue(Integer value) {
        for (PatientPrecautionEnum item : values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        return null;
    }
}
